package library;

import java.io.Serializable;
import java.util.Observable;

public class Lending
extends Observable
implements Serializable
{
	private static final long serialVersionUID = -4434546920010223133L;
	
	private Book b;
	private Student s;
	
	public Lending(Book b, Student s)
	{
		this.b = b;
		this.s = s;
	}

	@Override
	public String toString()
	{
		return("Lending [" + b + " <- " + s + "]");
	}

	@Override
	public int hashCode()
	{
		return(b.hashCode() + s.hashCode() % 715827883);
	}

	public Book getBook()
	{
		return b;
	}

	public Student getStudent()
	{
		return s;
	}
	
	
}
